package com.dly.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dly.blog.meta.MetaObject;
import java.io.Serializable;
import java.io.Serial;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author DLY
 * @since 2024-11-11 14:10:57
 */
@Data
@TableName("blog_user")
@Schema(name = "User", description = "用户表")
@EqualsAndHashCode(callSuper = true)
@Builder
public class User extends MetaObject {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "用户名")
    @TableField("user_name")
    private String userName;

    @Schema(description = "邮箱")
    @TableField("user_email")
    private String userEmail;

    @Schema(description = "密码")
    @TableField("password")
    private String password;

    @Schema(description = "账号")
    @TableField("user_account")
    private String userAccount;

    @Schema(description = "次数")
    @TableField("frequency")
    private Integer frequency;

    @TableField("open_id")
    private String openId;

    @Schema(description = "头像")
    @TableField("avatar")
    private String avatar;

    @Schema(description = "微信公众号的openId")
    @TableField("official_account_open_id")
    private String officialAccountOpenId;

    @Schema(description = "职业")
    @TableField("career")
    private String career;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;
}
